#include "MemberType.h"

#include "iostream"
using namespace std;

void MemberType::setMemberInfo(
        const string &firstName,
        const string &lastName,
        int membershipNumber)
{
    (*this).firstName = firstName;
    (*this).lastName = lastName;
    (*this).membershipNumber = membershipNumber;
}

string MemberType::getFirstName() const
{
    return firstName;
}

string MemberType::getLastName() const
{
    return lastName;
}

int MemberType::getMembershipNo() const
{
    return membershipNumber;
}

void MemberType::printName() const
{
    cout << (*this).lastName << ", " << (*this).firstName << endl;
}

void MemberType::printMemberInfo() const
{
    cout << (*this).membershipNumber
        << " - " << (*this).firstName
        << " " << (*this).lastName << endl;
}